/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_activity_shareEntity
 * @author wangjianxin
 * @version 2018-09-28
 */
@Table(name="wx_activity_share", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="title", attrName="title", label="title", queryType=QueryType.LIKE),
		@Column(name="pic", attrName="pic", label="pic"),
		@Column(name="content", attrName="content", label="content"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxActivityShare extends DataEntity<WxActivityShare> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// title
	private String pic;		// pic
	private String content;		// content
	
	public WxActivityShare() {
		this(null);
	}

	public WxActivityShare(String id){
		super(id);
	}
	
	@Length(min=0, max=200, message="title长度不能超过 200 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=200, message="pic长度不能超过 200 个字符")
	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}
	
	@Length(min=0, max=200, message="content长度不能超过 200 个字符")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}